home *** CD-ROM | disk | FTP | other *** search
/ Acorn Risc Technologies StrongARM CD-ROM / Acorn Risc Technologies StrongARM CD-ROM.iso / ftp / documents / appnotes / 261_275 / 264c / Text
Encoding:
Text File  |  1994-09-21  |  22.2 KB  |  584 lines

  1. -----------------------------------------------------------------------------
  2. 7th September 1994
  3. -----------------------------------------------------------------------------
  4. Support Group Application Note: General information on Ethernet cards for 
  5.                           RISC OS computers
  6.  
  7. Number: 264
  8. Issue: 1
  9. Author: CAS 
  10. -----------------------------------------------------------------------------
  11. Notes: 
  12.  
  13. This application note details some of the less well known features of
  14. the Ethernet cards which Acorn supplies to its customers. At the present
  15. time Acorn cards are manufactured by ANT Ltd and I³ and as a consequence the
  16. information in this application is of direct relevance  to cards produced by
  17. these manufacturers. However, much of the information concerning the
  18. interpretation of statistical information can also be applied to cards by
  19. other manufacturers.
  20.  
  21. This application note also examines the installation and use of Acorn Access
  22. cards in AUN Gateways and TCP/IP sites.
  23.  
  24. -----------------------------------------------------------------------------
  25. Applicable Hardware:  All RISC OS based computers fitted with RISC OS 3.10
  26.                       or later.
  27.  
  28.  
  29. Related Application Notes: None
  30.  
  31. -----------------------------------------------------------------------------
  32. Copyright (C) Acorn Computers Limited 1994
  33.  
  34. Every effort has been made to ensure that the information in this leaflet is 
  35. true and correct at the time of printing. However, the products described in
  36. this leaflet are subject to continuous development and improvements and
  37. Acorn Computers Limited reserves the right to change its specifications at
  38. any time. Acorn Computers Limited cannot accept liability for any loss or
  39. damage arising from the use of any information or particulars in this
  40. leaflet. ACORN, ECONET and ARCHIMEDES are trademarks of Acorn Computers
  41. Limited.
  42. -----------------------------------------------------------------------------
  43. Support Group
  44. Acorn Computers Limited
  45. Acorn House
  46. Vision Park
  47. Histon
  48. Cambridge
  49. CB4 4AE                                                  
  50. -----------------------------------------------------------------------------
  51.  
  52.  
  53. Introduction.
  54.  
  55. This application note will provide the more inquisitive user of Acorn
  56. Ethernet networks with information concerning the setup and configuration
  57. options of the cards supplied by Acorn. This application note is not
  58. intended to guide the reader through the process of setting up an Ethernet
  59. net. Those readers who require this information should refer to the
  60. documentation supplied with either the Ethernet card(s) and the appropriate
  61. network software.
  62.  
  63. Diagnostics and Self Test.
  64.  
  65. All cards supplied by Acorn are capable of performing a self test the first
  66. time they are  powered up. In the case of the Ethernet III card the
  67. subsequent self test behaviour is configurable by the user. See the section: 
  68. Ethernet III configuration options. The I³ is not configurable in this
  69. respect.
  70.  
  71. The following describes the basic tests performed by the I³ card:
  72.  
  73.      On power up or after a reset the software will perform a self test and cable check.
  74.  
  75.      On board buffer memory is tested.
  76.  
  77.      Internal and external loopback on NIC is used to test:
  78.  
  79.           DMA
  80.           CRC generation and checking
  81.           address recognition
  82.           serializer/deserializer
  83.           transmit and receive paths
  84.           network interface
  85.  
  86.      External loopback tests the integrity of the cable and termination.
  87.  
  88.      Fault conditions are detected, diagnosed and reported.
  89.  
  90. Errors which are detected are usually reported at boot time or are
  91. accessible from the *Netstat command. For example the Ethernet III card will
  92. generate the following information on power up when in test mode:
  93.  
  94.      Locate controller . . . . . . . . . 16 bit SEEQ controller
  95.      Testing for stuck interrupts  . . . PASSED
  96.      Testing controller registers  . . . PASSED
  97.      Testing individual interrupts . . . PASSED
  98.      Testing buffer memory . . . . . . . PASSED
  99.      Loopback test with correct CRC  . . PASSED
  100.      Loopback test with incorrect CRC  . PASSED
  101.      Loopback test with controller CRC . PASSED
  102.      Live test with correct CRC  . . . . FAILED
  103.      Warning: No access to network; restart computer to clear
  104.  
  105. or     *Netstat
  106.      Warning: No access to network; restart computer to clear
  107.  
  108.  
  109. Ethernet III card configuration
  110.  
  111. Setting the configuration
  112.  
  113. If the configuration of a card is stored in CMOS RAM (as is the case for all
  114. podules or cards that fit in network slots) then the card configuration is
  115. set using the *Configure command. The configuration command takes the form:
  116.  
  117. *Configure EtherX <option> [<n>]
  118.  
  119. Where X represents the type of driver (eg Ether3 or EtherB) and <option> is
  120. the configuration option the user wishes to set.  For drivers that support
  121. multiple cards (i.e.  drivers for podules rather than netcards) there is an
  122. optional numeric parameter [<n>] to choose which podule slot is to be
  123. configured.  If this parameter is omitted then the configuration will be set
  124. on all suitable cards installed in the computer at the time.
  125.  
  126. Configuration options
  127.  
  128. Disable | Enable
  129.  
  130. Configure ‘Enable’ if you wish to use the card. When configured to ‘Disable’
  131. the card will not be self-tested nor will it transmit or receive any
  132. packets.
  133.  
  134. OldInet | NewInet
  135.  
  136. Configure the Ethernet card to ‘NewInet’ unless you are using versions of
  137. the AUN modules “Internet” or “InternetA” prior to 2.00. This configuration
  138. enables faster data transfers when NewInet is supported. Later issues of the
  139. driver software set this configuration by default; older ones may not.
  140.  
  141. Strict | Ignore
  142.  
  143. If the interface is configured to be ‘Strict’ then should the interface fail
  144. its selftest it will return an error and not activate itself for network
  145. accesses.  If the unit is configured to ‘Ignore’ the selftest result then
  146. the unit will activate itself even if the selftest fails.  The card should
  147. always be in a ‘Strict’ state for normal operation.
  148.  
  149. NoLiveWireTest | LiveWireTest
  150.  
  151. These configurations determine whether the Ethernet network cabling is
  152. tested during the card’s self-test sequence. When configured to
  153. ‘LiveWireTest’ both valid and erroneous packets are generated onto the
  154. network and tests performed to see that they are correctly received.
  155. Configuring ‘NoLiveWireTest’ prevents the cabling test from being performed.
  156.  
  157. Terse | Verbose
  158.  
  159. When configured ‘Terse’ the EtherX driver will only report information to
  160. the user when there is a need.  The selftest of a card will happen silently
  161. unless there is an error to report and the information command (EXInfo) will
  162. only report statistics collected for the interface if the statistic count is
  163. non-zero.  If the unit has been configured to be ‘Verbose’ then all the
  164. stages of the self test will cause a message to be printed and all the
  165. statistics for the interface will be listed even when the count is zero.
  166.  
  167. Default
  168.  
  169. Configuring an interface to the ‘Default’ state will set all five
  170. configuration switches to the default settings.  For production versions of
  171. the software the default state is:
  172.  
  173. Enable, OldInet1, Strict, NoLiveWireTest, Terse.
  174.  
  175. 1 Old software only
  176.  
  177. Configuring the Pocket Ethernet Adaptor (PEA)
  178.  
  179. For cards that fit externally to the host machine, such as the PEA, the
  180. configuration for the unit is stored in a system variable.  A system
  181. variable of the form Ether<X>$Options is looked for on startup and if it is
  182. found the content is parsed.  The content of the variable should be a list
  183. of the options described above separated by spaces and/or commas.  Any
  184. options that are not set are assumed to be in the default state.  If any 
  185. option is set more than once the rightmost setting takes precedence.  This
  186. variable is usually set in the !Configure file of a !Internet or !BootNet
  187. application.  For example the setting for a pocket Ethernet adaptor might
  188. be:
  189.  
  190. *Set EtherP$Options “Strict, LiveWireTest, Verbose”
  191.  
  192. Ethernet card driver information
  193.  
  194. Statisitcal information can be derived from ethernet cards using a command
  195. such as *E3Info. This is this command for Ether3 (AEH54) cards.  RiscPC
  196. ethernet cards and A3020 cards from Acorn use the command *EBInfo and
  197. *EHInfo respectively. The statistical information varies from manufacturer,
  198. but once understood it is possible to easily identify the appropriate
  199. elements from any manufacturers card. eg.
  200.  
  201. *E3info Ether3 interface statistics
  202.  
  203. ea0: bussize 16 (1a), slot 0, enabled, hardware address 00:02:07:dd:ee:ae
  204.  
  205. packets received = 57368         packets transmitted = 12954 bytes
  206. received = 7306050              bytes transmitted = 3656228 receive
  207. interrupts = 57274            transmit interrupts = 12952 interrupts = 68569                    
  208.  
  209. Frame types recognised: 0x0800, 0x0806, 0x8035.
  210.  
  211. Or alternatively:
  212.  
  213. *ehinfo
  214. DCI Version       2
  215.  
  216. Card Info:-       i-cubed ltd, EtherLan 200 Ethernet interface
  217.                   Ethernet address=00:c0:32:00:0a:3c
  218.                   i-cubed 10Base2 MAU adaptor connected.
  219.  
  220. I/O Stats:-       Rxframes=20, Rxerrs=0, Txframes=18, Txerrs=0
  221.                   Collisions=0, Rejects=0
  222.  
  223. Description of statistical information from E<n>Info
  224.  
  225. The information will be categorised according to the headings used in each
  226. cards statistics. The headings are structured Ethernet III card / I³ card.
  227.  
  228. Packets received/Rxframes
  229.  
  230. A count of the number of packets which have been received by the station.
  231.  
  232. Not provided/Rxerrs
  233.  
  234. A count of the number of packets which were received in an incomplete or
  235. corrupted state. Normally this value should be 0. If it is not then there is
  236. a fault on the network. Faults are reported as an additional line indicating
  237. the type of error(s).
  238.  
  239. Packets transmitted/Txframes
  240.  
  241. A count of the number of packets which have been transmitted by the station.
  242.  
  243. Not provided/Txerrs
  244.  
  245. A count of the number of packets which were transmitted by the station and
  246. received by the destination station in an incomplete or corrupted state.
  247. Normally this value should be 0. If it is not then there is a fault on the
  248. network. Faults are reported as an additional line indicating the type of
  249. error(s).
  250.  
  251. Bytes received/Not provided
  252.  
  253. The total number of data bytes contained in the packets received by the
  254. station.
  255.  
  256. Bytes transmitted/Not provided
  257.  
  258. The total number of data bytes contained in the packets transmitted by the
  259. station.
  260.  
  261. Receive interrupts/Not provided
  262.  
  263. The total number of interrupts generated by the card for the purpose of
  264. receiving data.
  265.  
  266. Transmit interrupts/Not provided
  267.  
  268. The total number of interrupts generated by the card for the purpose of
  269. transmitting data.
  270.  
  271. Interrupts/Not applicable
  272.  
  273. The total number of interrupts generated by the card.
  274.  
  275. Not applicable/Collisions
  276.  
  277. A count of the number of times the computer has attempted to access the
  278. network simultaneously with another.
  279.  
  280. Not applicable/Rejects
  281.  
  282. A count of the number of packets addressed to the computer but which were
  283. not understood. On a pure AUN network this should always be 0.
  284.  
  285. The format of the Netstat information remains constant irrespective of the
  286. manufacturer. The statistics from this command  are displayed as shown
  287. below:
  288.  
  289. *Netstat a
  290.  
  291. Interface         ea  AUN Station       128.52 Full address     
  292. 136.170.128.52 Broadcast         136.170.135.255
  293.  
  294. Known nets        128   129   130   131   
  295.  
  296. TX stats          Data=1186, Immediate=2, Imm_Reply=2, Retry=150
  297.                   Error=0, Data_Ack=1194, Data_Rej=283, Broadcast=935
  298.                   (local=0, global=935)
  299.  
  300. RX stats          Data=1477, Immediate=2, Broadcast=21156, Discard=0
  301.                   Retry=279, Error=0, Data_Ack=1031, Data_Rej=155
  302.                   Imm_Reply=2, Reply_Rej=0
  303.  
  304. Module status     01
  305.  
  306. The most useful terms are generalised below:
  307.  
  308. TX stats     
  309.  
  310. Immediate       The number of times the Econet_<xxx>Immediate SWI calls have
  311. been issued.
  312.  
  313. Imm-reply     Number of responses to the Econet_<xxx>Immediate SWI calls.
  314.  
  315. Retry     Number of times the station has had to re-send data due to the
  316. packets being rejected by the receiving station. Data_rej should correlate
  317. with this value.
  318.  
  319. Error     Number of transmission errors reported by the IP software.
  320.  
  321. Data_Ack      Number of successful packets sent
  322.  
  323. Data_rej      Number of times transmissions have been rejected. (See Retry.)
  324.  
  325. Broadcast     Number of broadcasts sent.
  326.  
  327.                 Local      - restricted to the subnet
  328.                 Global      - restricted to the site
  329.  
  330. RX stats Unless specifically mentioned all statistics have the same meaning
  331. as above but refer instead to receiving data.
  332.  
  333. Discard     A count of the number of packets received which the interface
  334. software does not understand.
  335.  
  336. Possible hardware faults
  337.  
  338. IMPORTANT: Most electronic devices can be damaged by static electricity. To
  339. reduce the possible adverse effects of static electricity note the following
  340. points when installing any component(s) or upgrade:
  341.  
  342. •     preferably work on an earthed antistatic mat, with an earthing
  343. bracelet on your wrist
  344.  
  345. •     avoid working in areas where there are man-made fibres, such as nylon
  346. carpets and nylon clothing
  347.  
  348. •     avoid touching the pins of components during fitting, unless you have
  349. first discharged any static electricity you may have attracted.
  350.  
  351. A3000 computers
  352.  
  353. The procedures outlined below do not apply to A3000 computers. The network
  354. interface card on an A3000 is intended to be fitted by an Acorn Authorised
  355. Dealer, who will install and  test the upgrade. A charge may be levied by
  356. the dealer for installing the upgrade; such a charge shall be entirely at
  357. the discretion of the dealer concerned.  
  358.  
  359. In order to minimise the effects of static we recommend the following
  360. procedure:
  361.  
  362. •     dismantle the computer as described in the appropriate fitting
  363. instructions
  364.  
  365. •     Reconnect the computer to the mains, but do not switch on.
  366.  
  367.      While the computer is connected to the wall socket:
  368.  
  369.      Do not switch on the computer.
  370.  
  371.      Do not switch on power at the wall socket.
  372.  
  373. •     Touch the power supply unit or the metalwork of the case to discharge
  374. any static electricity that you may have attracted. (If you are
  375. statically-charged, you may feel a tingling sensation when you do this.) 
  376.  
  377. •     Complete the removal/fitting of the interface as described in the
  378. appropriate instructions.
  379.  
  380. If you are suspicious that the line driver may be damaged by exposure to
  381. static electricity then it is possible to test the integrity of the line
  382. driver with a multi-meter. The design of the A3020 and A4000 network slot
  383. cards prevent access to the necessary components in order to perform the
  384. following test. In this instance these cards must be returned to your
  385. supplier.
  386.  
  387.  
  388. Ethernet III card showing line driver and diode protection.
  389.  
  390. Should the line driver be damaged it will require returning to your supplier
  391. for the line driver to be replaced.
  392.  
  393. I³ Ethernet cards are fitted with a small fuse which will protect the
  394. computer from damage in the event of a failure. This fuse can be damaged by
  395. static and consequently may need replacing. If you are suspicious that the
  396. fuse may have failed it can be tested using a multi-meter. Identify the
  397. component marked F1; it is normally a round device rather like a capacitor
  398. is shape. Using a meter measure the resistance across the two pins. If the
  399. value is greater than 0 ohms then the fuse is damaged.
  400.  
  401. Note:      This fuse must be replaced with one of the same rating and type.
  402. Do not fit a fuse of a different specification. If in doubt contact your
  403. supplier before proceeding.
  404.  
  405. Acorn Access Ethernet cards
  406.  
  407. This section details some of the issues surrounding the use of Acorn Access
  408. cards in different situations.
  409.  
  410. When an AUN Ethernet III card is placed into a machine the bulk of the
  411. software is dormant on power up. This software consists of the following or
  412. later modules:
  413.  
  414.      Ether3           1.26     *
  415.      InternetA        1.13      
  416.      NetMsgs          0.02      
  417.      Net              1.21 
  418.      BootNet          0.84     *
  419.  
  420. (Modules marked with * are active on power up)
  421.  
  422. The software is activated or “switched on” by the Bootnet module which
  423. provides the * command:
  424.  
  425. *configure Bootnet On|Off
  426.  
  427. When Bootnet is configured on all the software modules on the card become
  428. active.
  429.  
  430. The Internet module provides the communication centre which allows the
  431. Ethernet card hardware to pass data to the computer. In order to ensure that
  432. the software could be placed on a convenient sized ROM the Internet module
  433. was “cut down” so that it only supported the features required by AUN. This
  434. “cut down” Internet is named InternetA. As we shall see there are different
  435. versions of the Internet module for different tasks.
  436.  
  437. !Gateway
  438.  
  439. It is often necessary to provide communication between two similar or
  440. disparate networks. Under AUN this functionality is provided by a Gateway.
  441. It was considered to be better for there to be a clear differentiation
  442. between client and Gateway stations under AUN and so the Gateway function is
  443. achieved by a software application; !Gateway. This requires an enhanced
  444. version of the InternetA module; InternetAG, to be present in the computer.
  445. In order to prevent a clash between the InternetA and the InternetAG modules
  446. it is necessary to “switch off” the AUN client software (*Configure  Bootnet
  447. off) before running the Gateway application. This results in the InternetAG
  448. module been used instead of InternetA.
  449.  
  450. TCP/IP
  451.  
  452. In an Internet site (such as Acorn) the client stations may require access
  453. to both Internet and AUN services. Provided in the AUN Level 4 Fileserver
  454. pack is the !Bootnet application software for such a situation. It is
  455. possible to achieve this level of connectivity by simply disabling the AUN
  456. client software and running the !Internet and !Bootnet applications in that
  457. order. The !Internet software provides a fully functioning version of the
  458. Internet module called Internet. When this version of the software is loaded
  459. it is not possible to use the !Gateway application, as this is superseded by
  460. the gateway functionality provided by the Internet software.
  461.  
  462. Acorn Access
  463.  
  464. When an Acorn Access card is placed into a machine the Access software is
  465. immediately activated on power up. This software consists of the following
  466. modules:
  467.  
  468.      Ether3          1.26      *
  469.      InternetA       1.13      *  
  470.      NetMsgs         0.02      
  471.      Net             1.21    
  472.      AccMsgs         0.01      *    
  473.      BootNet         0.84      *    
  474.      Freeway         0.10      *
  475.      ShareFS         2.23      *    
  476.      ADFSFiler       0.69      *
  477.  
  478. (Modules marked with * are active on power up)
  479.  
  480. The presence of the InternetA module at power up normally renders the Acorn
  481. Access card unsuitable for use in a Gateway computer or as a client in a
  482. full Internet site. This is because the InternetA module is incompatible
  483. with the other versions needed by !Gateway and !Internet. In order to
  484. provide the necessary alternative the InternetA module needs to be unlinked
  485. from the other software before it can be replaced. The links to the other
  486. modules then need to be rebuilt. 
  487.  
  488. As you can imagine, this is a somewhat involved and convoluted process. The
  489. remainder of this document describes this process and thus enables Acorn
  490. Access cards to be used in these environments.
  491.  
  492. Integrating Acorn Access and TCP/IP.
  493.  
  494. This is the most straight forward of the different scenarios to get working
  495. successfully. It requires the building of a two stage boot sequence which
  496. includes a file which is accessed before the desktop is active and a file
  497. which is called when the desktop becomes active.
  498.  
  499. The information provided here assumes that the necessary changes to the
  500. !Internet and !BootNet application have been implemented. If a !Boot file;
  501. of type Desktop, already exists then rename it as Desktop.
  502.  
  503. Using !Edit create an Obey file which contains the following lines:
  504.  
  505. RMKill InternetA      
  506. RMKill ShareFs      
  507. RMKill Freeway      
  508. RMKill AccMsgs      
  509. Run ADFS::4.$.Apps.tcp_ip.!Internet.!Run      
  510. RMReinit AccMsgs      
  511. RMReinit Freeway      
  512. RMReinit ShareFs      
  513. Run ADFS::4.$.Apps.tcp_ip.!BootNet.!Run      
  514. Desktop -f ADFS::4.$.Desktop | Used if there is a Desktop file      
  515. |Desktop | Used if there isn’t a Desktop file.
  516.  
  517. Note:   The pathnames to the applications and files may vary according to
  518. the disc structure used. The order in which the modules are *RMReinit-ed is
  519. vital.
  520.  
  521. Save this file as !Boot and reset the machine.
  522.  
  523. Integrating Acorn Access and !Gateway.
  524.  
  525. A two stage boot sequence is required. The information provided here assumes
  526. that the necessary changes to the !Internet and !BootNet application have
  527. been implemented. If a !Boot file; of type Desktop, already exists then
  528. rename it as Desktop.
  529.  
  530. Using !Edit create an Obey file which contains the following lines:
  531.  
  532. RMKill Freeway      
  533. RMKill Sharefs      
  534. RMKill InternetA      
  535. RMKill AccMsgs      
  536. Desktop -f ADFS::4.$.Desktop
  537.  
  538. Note:   The pathname to the Desktop file may vary according to the disc
  539. structure used.
  540.  
  541. Save this file as !Boot.
  542.  
  543. Using !Edit create a file of type Desktop or alternatively add these lines
  544. to the very start of an existing Desktop file:
  545.  
  546. Run ADFS::4.$.Network.!GateWay      
  547. RMReinit AccMsgs      
  548. RMReinit sharefs      
  549. RMReinit Freeway      
  550. Run ADFS::4.$.Network.!Server | Optional     
  551. Run ADFS::HardDisc4.$.Network.!AAServer | Optional      
  552. Share ADFS::HardDisc4.$ HardDisc4 | Mandatory for each exported disc
  553.  
  554. Save this file as $.Desktop.
  555.  
  556. Notes:
  557.  
  558. !Gateway:      This must be started after the desktop otherwise the gateway
  559.                icon will not appear on the icon 
  560.                bar, although the gateway will function correctly.
  561.  
  562. !AAServer:     If this is required on the Gateway machine, as well as
  563.                Acorn Access, then the reference to 
  564.                -readonly must be removed from the !AAServer.!Config. If
  565.                this is not done then the error Bad parameters will
  566.                occur and !AAServer will fail to start.
  567.  
  568.                This has the added side effect of the contents of the
  569.                !Config file being passed straight to the command line where 
  570.                they are interpreted by Acorn Access. As a consequence they will 
  571.                appear as unprotected Access disc icons, thus preventing them 
  572.                from being accessed by !AAClient computers.
  573.  
  574.                If the !AAServer directory(ies) are exported from the desktop 
  575.                each time then the commands are correctly passed to the !AAServer 
  576.                and exported accordingly.
  577.  
  578. Share          This command is mandatory and is necessary for each of the 
  579.                exported Access discs in order to remind ShareFS of its exports. 
  580.                Failure to do this will result in any saved exports remaining 
  581.                unavailable.
  582.  
  583.  
  584.